import axios from "../../axios"


let adminsApi = {
    login(data) {
        return axios({
            url: "/admin/login",
            method: "post",
            data
        })
    },
    addAdmin (data) {
        return axios({
            url: "/admin/register",
            method: "post",
            data
        })
    }

}



export default adminsApi